package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.req.AttrGroupRelationReqVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lichen
 * @email 78085201@qq.com
 * @date 2020-10-15 18:20:39
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 根据属性分组id获取对应的具体属性
     * @param attrgroupId
     * @return
     */
    List<AttrEntity> getRelationAttrByGroupId(Long attrgroupId);

    /**
     * 属性分组--关联--批量删除/移除
     * @param reqVo
     */
    void deleteRelation(AttrGroupRelationReqVo[] reqVo);
}

